{
  "properties" : { },
  "id" : "fef3763a1a794fe8bfcc999bdfef9a5f",
  "script" : null,
  "groupId" : "ac591c67b817445b854550336cb082f2",
  "name" : "修改告警级别",
  "createTime" : 1727070918336,
  "updateTime" : 1724840880889,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "update",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"id\":\"12\",\n    \"level\":15,\n    \"levelName\":\"提示\",\n    \"levelDescr\":\"提示\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": 1\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================

return db.update("""
    update alarm_level set level = #{body.level}, level_descr = #{body.levelDescr},level_name = #{body.levelName}
    where id = #{body.id}
""")